package bookstudytest.singleton;



/**
 * @Auther: Lee
 * @Date: 2018/6/11 11:57
 * @Description: 静态内部类
 */
public class LazyInnerClassDemo {
    private LazyInnerClassDemo(){
        System.out.println("我开始了老哥！");
    }
    private static class InnerClass{
        private static final LazyInnerClassDemo LAZY_DOUBLE_LOCK_DEMO = new LazyInnerClassDemo();
    }
    public static LazyInnerClassDemo getInstance(){
        return InnerClass.LAZY_DOUBLE_LOCK_DEMO;
    }

}
